package entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;



/**

 * orderitem 详细订单项

 * @author 

 */

public class Orderitem implements Serializable {

    //订单子表id

    private Integer id;

    //用户id

    private Integer user_id;

    private User user;

    //订单号

    private Long order_no;

    private Order order;

    //商品id

    private Integer product_id;

    //商品名称

    private String product_name;

    //商品图片地址

    private String product_image;

    //生成订单时的商品单价，单位是元,保留两位小数

    private BigDecimal current_unit_price;

    //商品数量

    private Integer number;

    //商品总价,单位是元,保留两位小数

    private BigDecimal total_price;

    private Timestamp create_time;

    private Timestamp update_time;

    private static final long serialVersionUID = 1L;



    public Integer getId() {

        return id;

    }



    public void setId(Integer id) {

        this.id = id;

    }



    public Integer getUser_id() {

        return user_id;

    }



    public void setUser_id(Integer user_id) {

        this.user_id = user_id;

    }



    public User getUser() {

        return user;

    }



    public void setUser(User user) {

        this.user = user;

    }



    public Long getOrder_no() {

        return order_no;

    }



    public void setOrder_no(Long order_no) {

        this.order_no = order_no;

    }



    public Order getOrder() {

        return order;

    }



    public void setOrder(Order order) {

        this.order = order;

    }



    public Integer getProduct_id() {

        return product_id;

    }



    public void setProduct_id(Integer product_id) {

        this.product_id = product_id;

    }



    public String getProduct_name() {

        return product_name;

    }



    public void setProduct_name(String product_name) {

        this.product_name = product_name;

    }



    public String getProduct_image() {

        return product_image;

    }



    public void setProduct_image(String product_image) {

        this.product_image = product_image;

    }



    public BigDecimal getCurrent_unit_price() {

        return current_unit_price;

    }



    public void setCurrent_unit_price(BigDecimal current_unit_price) {

        this.current_unit_price = current_unit_price;

    }



    public Integer getNumber() {

        return number;

    }



    public void setNumber(Integer number) {

        this.number = number;

    }



    public BigDecimal getTotal_price() {

        return total_price;

    }



    public void setTotal_price(BigDecimal total_price) {

        this.total_price = total_price;

    }



    public Timestamp getCreate_time() {

        return create_time;

    }



    public void setCreate_time(Timestamp create_time) {

        this.create_time = create_time;

    }



    public Timestamp getUpdate_time() {

        return update_time;

    }



    public void setUpdate_time(Timestamp update_time) {

        this.update_time = update_time;

    }

}


